#include "SoundData.h";
#include "Game_Audio.h";

Game_Audio_Class GameAudio(25,0); 
Game_Audio_Wav_Class pmWav(pacman);

void setup() {
  Serial.begin(115200); 
  Serial.println("Begin...");
}

void loop() {
	Serial.print("Pacman Theme Sample Rate (Hz):");
	Serial.println(pmWav.getSampleRate());
	Serial.print("Duration (secs):");
	Serial.println(pmWav.getDuration());
	
	Serial.println("开始播放");
	GameAudio.PlayWav(&pmWav, false, 1.0);
	
	// wait until done
	while(GameAudio.IsPlaying()){		
	}
	Serial.println("结束播放");
	
	delay(80000);
}


